package com.untour.im.client.message;

import com.untour.im.codec.protocol.message.body.MessageBody;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ClientMessage {
    /**
     * 消息操作指令 十六进制 一个消息的开始通常以0x开头
     * 4字节
     */
    private Byte command;

    private Integer clientType;

    private MessageBody messageBody;


    public ClientMessage(Byte command, MessageBody messageBody) {
        this.command = command;
        this.messageBody = messageBody;
    }
}
